<!DOCTYPE html>
<html>
	<head>
		
		<title></title>
	</head>
	<body>
		<script>
        var arr=[67,1,34,3,4,98,3,234,24,543,23,5];
		var max=arr[0];
		var min=arr[0];
		max=parseInt(max);
		min=parseInt(min);
		for(var i=1;i<arr.length;i++)
		{
			if(max<arr[i])
			{
				max=arr[i];
			}
			
		}
		for(i=1;i<arr.length;i++)
		{
			if(min>arr[i])
			{
				min=arr[i];
			}
			
		}
		document.write("该数组的最大值为："+max+"<br>");
		document.write("该数组的最小值为："+min);
			
		</script>
	</body>
</html>